<div id="mainbody" style="height:100%">
	<div ng-show="!use_template" style="height:100%" ng-include="main.page" onload="start()"></div>
	<div ng-show="use_template" style="height:100%">
		<ul class="nav nav-tabs" ng-if="main.tabs">
			<li ng-repeat="tab in main.tabs" ng-class="{'active':(pagedata.op==tab.op && ((!page.query && !tab.query) || page.query==tab.query))}"><a href="javascript:;" ng-click="access_json(tab)">{{tab.title}}</a></li>
		</ul>
		<div id="base_template_html"></div>
	</div>
</div>